<script setup>
 import {ref} from 'vue' 
 import {ApiGetSelectedList} from '@/api/index.js'
const selectedList =ref([])
const getSelectedList= async()=>{
  const res = await ApiGetSelectedList({pageSize:20})
  selectedList.value=res.data 
}
getSelectedList()
</script>

<template>
  <view class="classify-container pagebg">
     <custom-nav-bar></custom-nav-bar>
    <view class="classify">
      <selected-image v-for="item in selectedList" :key="item._id" :item="item"></selected-image>
    </view>
  </view>
</template>

<style lang="scss" scoped>
  .classify{
    width: 750rpx;
    padding: 20rpx;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10rpx;
    box-sizing: border-box;
  }
</style>
